
	 <script> 
            var wxChannel = null; // 微信支付  
            mui.init({  
                swipeBack:true //启用右滑关闭功能  
            });  
             
            mui.plusReady(function() {    
                // 获取支付通道  
                plus.payment.getChannels(function(channels){  
                for (var i in channels) { 
                        if (channels[i].id == "wxpay") { 
                             wxChannel=channels[i];  
                        }
                    }     
                },function(e){  
                    alert("获取支付通道失败："+e.message);  
	            });  
	        });


            plus.payment.request(wxChannel,data,function(result){  
                plus.nativeUI.alert("支付成功！",function(){  
                back();

            });  

            },function(error){  
                plus.nativeUI.alert("支付失败：" + error.code);  
            });  

    </script>